<%-- 
  - Author: Asna Khader
  - Date: 05-MAR-2012
  - Copyright Notice: TRAKHEES
  - Description: AttachmentsTab.jsp
 --%>
 <%@ include file="/WEB-INF/view/include.jsp"%>
 <!-- Attachments -->
        <div id="Attachments">
        	<fieldset>
			 	<legend><spring:message code="header.attachments" /></legend>
			</fieldset>
			<div class="t_form-left">
				
			<c:forEach items="${files}" var="item">
					<c:if test="${item.attachmentTypeCode<=7}">
							<table>
								<tr>
									<td>
										<c:choose>
											 <c:when test="${item.attachmentTypeCode=='1'}">
											 	<label><spring:message code="label.passport_copy" /></label>
				 							 </c:when>
				 							 <c:when test="${item.attachmentTypeCode=='2'}">
											 	<label><spring:message code="label.letter_from_company" /></label>
				 							 </c:when>
				 							 <c:when test="${item.attachmentTypeCode=='3'}">
											 	<label><spring:message code="label.photograph" /></label>
				 							 </c:when>
										</c:choose>
									</td>
									<td><input type="text" value="${item.fileName}" disabled/></td>
									<td><a class="pdfimageattachment" href="file/${item.id}" title="${item.fileName}" style="width:15px;height:15px;display:inline;"><img alt="View" src="resources/images/common/show_img_icon.jpg" /></a></td>
								</tr>
							</table>
							<div  class="t_pop_up">
								<div id="${item.id}">
								<%-- <jsp:include page="attachments-popup.jsp">
									<jsp:param value="file/${item.id}" name="filePath"/>
								</jsp:include>--%>
									<img src="file/${item.id}" />
								</div>
							</div>
						</c:if>
				</c:forEach>
			</div>
				<div id="fm-submit">
				    <button  class="button_small" id="Comments-Next"  ><spring:message code="button.next" /></button>
        			<button  class="button_small" id="Comments-Prev" ><spring:message code="button.previous" /></button>
			</div>
		</div>
	